package cn.cvs.dao;

import cn.cvs.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierMapper {
//    Integer findIdByName(@Param("supName") String supName);
List<Supplier> selectList(@Param("supName") String supName,
                          @Param("supCode") String supCode,
                          @Param("pageBegin") Integer pageBegin,
                          @Param("pageSize") Integer pageSize);
    int selectCount(@Param("supName") String supName, @Param("supCode") String supCode);
    Supplier selectById(@Param("id") Integer id);
    int add(Supplier supplier);
    int update(Supplier supplier);
    int deleteById(@Param("id") Integer delId);
}